--
-- Author: shunguo.chen
-- Date: 2018-06-07 11:27:37
--
-- TheatreRender
--

local ClassRef = app.mvc.createRenderClass(...)

--data =
function ClassRef.createWithData(data, node)
    local sprite = ClassRef.extend(node)
    if node == nil then
        ccui.Helper:doLayout(sprite)
    end
    sprite:init(data)
    return sprite
end
function ClassRef.create(node)
    return ClassRef.createWithData(nil, node)
end

--
function ClassRef:init(data)
    self.super.init(self, data)

    self:refresh()
end

function ClassRef:refresh()
    if self._data then

    end
end

function ClassRef:onBtnClick(cb)
    self._onClick = cb
end

return ClassRef
